Chat List Page
fun ChatListPage(modifier: Modifier = Modifier, viewModel: ChatbotViewModel = hiltViewModel(), onNavigateToChatbot: () -> Unit, onNavigateToChatLog: (String) -> Unit, openDrawer: () -> Unit)
Main function for the ChatListPage, used to display a list of previously completed chatLogs or cognitive behavioural therapy activities.
Relies on helper composables ChatListPageContent and LogItem. ChatListPageContent is used for rendering the content of the page, while LogItem defines the composables that are listed on the page.
Parameters
modifier
Optional modifier for the composable.
view Model
The view model for accessing the list of logs.
on Navigate To Chatbot
Callback function for navigating to the chatbot page.
on Navigate To Chat Log
Callback function for navigating to a specific chat log.
open Drawer
Callback function for opening the navigation drawer.